﻿using System;

namespace Teigha.Core
{
	public class OdGiDefaultContext_Internal : OdGiDefaultContext
	{
		public OdGiDefaultContext_Internal(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
		{
		}

		public override void setPlotGeneration(bool plotGeneration)
		{
			GlobalsPINVOKE.OdGiDefaultContext_setPlotGeneration(OdGiDefaultContext.getCPtr(this), plotGeneration);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public override uint paletteBackground()
		{
			uint result = GlobalsPINVOKE.OdGiDefaultContext_paletteBackground(OdGiDefaultContext.getCPtr(this));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public override void setPaletteBackground(uint paletteBackground)
		{
			GlobalsPINVOKE.OdGiDefaultContext_setPaletteBackground(OdGiDefaultContext.getCPtr(this), paletteBackground);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}
	}
}
